<extend name="Base/common"/>
<block name="body">
<style type="text/css">
    .course-tr{ height: 140px; }
    .course-span{ padding-left: 50px; }
    .div-class{ margin-left: 300px; }
    .div-span{ margin-left: 20px; }
    #sapn-id{ color: red; }
</style>
    <div>
    <a href="#" onClick="javascript :history.go(-1);">返回</a>
    <table>
            <tr class="course-tr">
                <td class="course-td">
                    <img width="100" height="100" src="__ROOT__{$data.logo|getimg=###}">地区：{$data.area_id|getArea=###}&nbsp;&nbsp;&nbsp;课程：{$data.title}&nbsp;&nbsp;价格:{$data.salary}<br />
                    {$data.nickname}<br /><if condition="$data['sex'] eq 1 "><img src="__IMG__/sex/1nan.png"><else /><img src="__IMG__/sex/2nv.png"></if>{$data.age}<br /><span>以上课时：　　{$num}</span><br /><if condition="$data['confirm'] eq 2 ">以认证<else />未认证</if>
                </td>
            </tr>
            <tr>
                <td>
                    <button class="assess">评价</button>
                    <input type="hidden" value="{$data.id}">
                </td>
            </tr>
    </table>
    </div>
            <div class="div-class">我的课程:</div>
            <div class="div-class">
                <volist name='time' id='vol'>
                    <lt name="vol.class_date" value="$date">
                        <span class="div-span" id="sapn-id">{$vol.class_date|date='m-d H:i:s',###}</span>
                    </lt>
                </volist>
            </div>
    </div>
    <script type="text/javascript">
        $('.assess').on('click',function(){
         var id = $(this).next('input:hidden').val();
        window.location.href='__MODULE__/CourseEva/assess/id/'+id;
        });
    </script>
</block>